# -*- coding: utf-8 -*-
"""
@Time    : 2021/10/13 18:08
@Author  : Leibuyun
@File    : 5.2 打印输出至文件中.py
"""

# 将print()函数的输出重定向到一个文件中去
with open('./texts/printfile.txt', 'w', encoding='utf-8') as f:
    print('Hello', file=f)
